package senpec.qc.harmony.system.role;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Transient;
import lombok.*;
import senpec.qc.harmony.base.mybatisplus.IBaseEntity;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Entity(name = "harmony_system_role")
@TableName("harmony_system_role")
public class Role extends IBaseEntity<Role> {
    //角色类型：内置和自定义两种
    @Column(length = 20)
    private String type;
    @Column(length = 20)
    private String name;
    private String description;
    //是否被用户选择了
    @Transient
    @TableField(exist = false)
    private Boolean selected;
    //是否被用户选择了
    @Transient
    @TableField(exist = false)
    private Long userId;
}